package org.sbbs.app.security.dao.hibernate;

import org.sbbs.app.security.model.UrlSecurityResource;
import org.sbbs.app.security.dao.UrlSecurityResourceDao;
import org.sbbs.base.dao.hibernate.BaseDaoHibernate;
import org.springframework.stereotype.Repository;

@Repository("urlSecurityResourceDao")
public class UrlSecurityResourceDaoHibernate
		extends
			BaseDaoHibernate<UrlSecurityResource, Long>
		implements
			UrlSecurityResourceDao {

	public UrlSecurityResourceDaoHibernate() {
		super(UrlSecurityResource.class);
	}

	@Override
	public void clearUrlResourceRepo() {
		String hql = "delete from UrlSecurityResource";
		this.getHibernateTemplate().bulkUpdate(hql);

	}
}
